import { S } from '../../s';
import { IPSAppRedirectView } from './ipsapp-redirect-view';
import { IPSAppViewRef } from './ipsapp-view-ref';
import { PSAppViewImpl } from './psapp-view-impl';

export class PSAppRedirectViewImpl
  extends PSAppViewImpl
  implements IPSAppRedirectView
{
  protected redirectpsappviewrefs: IPSAppViewRef[];
  getRedirectPSAppViewRefs(): IPSAppViewRef[] | null {
    return (
      this.redirectpsappviewrefs ||
      (this.redirectpsappviewrefs = this.fillChildListModel(
        this.M.getRedirectPSAppViewRefs,
        S._8d,
      ) as IPSAppViewRef[])
    );
  }

  get enableDP(): boolean {
    return this.M.enableDP;
  }

  get enableWF(): boolean {
    return this.M.enableWF != null ? this.M.enableWF : false;
  }

  get redirectView(): boolean {
    return this.M.redirectView;
  }
  get cls(): string {
    return 'PSAppRedirectViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._2e) return true;
    return super.instanceof(cls);
  }
}
